home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / science / vpcalc23.zip / FASTFIB.VPC < prev    next >
Text File  |  1991-09-08  |  358b  |  17 lines

  1. Rem Start of FastFib.VPC
  2.  
  3. x This VPCalc code file computes Fibonacci numbers using a fast formula
  4. x To run, start VPCalc.Exe.  At Command: prompt, enter:
  5. x     ----->>>>> Run("FastFib  <<<<<-----;
  6. x Harry Smith, 91/05/25.
  7.  
  8. a = Sqrt( 5)
  9. b = (1 + a) / 2
  10. x F = Int( 0.5 + b^n / a)
  11. n = 78 x
  12.    F78 = F
  13. n = 79 x 
  14.    F79 = F
  15.  
  16. "End of FastFib.VPC"
  17.